package com.jwdf.uda.http.action;

import android.content.Context;

import com.jwdf.uda.bean.PbBean;
import com.jwdf.uda.http.AHttpService;
import com.jwdf.uda.http.ApiService;

import retrofit2.Call;

/**
 * Created by Administrator on 2016/9/1.
 */
public class CategoryGetAction extends AHttpService<PbBean.PbResQuestionCategoryGet> {


    public static CategoryGetAction newInstance(Context context){
        return new CategoryGetAction(context);
    }

    private CategoryGetAction(Context context) {
        super(context);
    }

    @Override
    protected Call newRetrofitCall(ApiService apiService, PbBean.PbBaseClientInfo.Builder baseBuilder) {
        PbBean.PbReqQuestionCategoryGet.Builder builder = PbBean.PbReqQuestionCategoryGet.newBuilder();
        builder.setBaseClientInfo(baseBuilder);
        return apiService.getQuizCategory(builder.build());
    }
}
